//
//  ONDefine.h
//  HairCutSalon
//
//  Created by Familly on 5/27/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//
#import "ONAppDelegate.h"

enum FILTER {
    FILTER_LOCATION =0,
    FILTER_RATING =1,
    FILTER_PROMOTION_NEARBY =2,
    FILTER_PROMOTION_HIGHT_RATING =3,
    FILTER_STAFF_PICKS=4,
} ;

enum DATA_TYPE
{
    LEVEL_ISO =0,
    LEVEL_LOADZONE =1,
    LEVEL_POWERPOINT =2,
};


enum DATA_REAL_TIME_SELECTED
{
    HOURLY =0,
    DAILY =1,
    WEAKLY =2,
    MONTHLY =3,
};
enum SUPPORT_TYPE {
    TYPE_SUPPORT=0,
    TYPE_COPY_RIGHT =1,
    TYPE_POLICY =2,
    TYPE_LICENSE =3,
    TYPE_RATING_APP=4,
} ;

#define TIME_CHECK 60*2 // 5 minutes 1 times
#define kKeyVendor @"k_Key_Vendor"

#define UPDATE_REAL_TIME @"UPDATE_Realtime_Data"
#define UPDATE_DAY_AHEAD @"UPDATE_DAY_AHEAD"
#define SAVING_DATA_REAL_TIME @"SAVING_DATA_REAL_TIME"
#define SAVING_DATA_DAY_AHEAD @"SAVING_DATA_DAY_AHEAD"
#define SAVING_DATA_ALERT @"SAVING_DATA_ALERT"


#define APP_KEY @"52713ee1b6f2a90f785715a9480593ade"
#define SERVER_URL @"volatix-test.siliconprime.us"
#define LOGIN @"token"
#define LOGOUT @"api/v1/account/logout"

#define kMinPasswordCharacters                      6

// NSUserDefault
#define kAccessToken      @"AccessToken"

#ifdef DEBUG
#   define NSLog(...) NSLog(__VA_ARGS__)
#else
#   define NSLog(...)
#endif
#define IS_IPHONE_5 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )

#define kSideMenuDidPanLeftComplete             @"kSideMenuDidPanLeftComplete"
#define kUpdatedataScreen                        @"kUpdatedataScreen"
#define kSideMenuDidPanCenterComplete             @"kSideMenuDidPanCenterComplete"

#define APP_DELEGATE       ((ONAppDelegate *)[UIApplication sharedApplication].delegate)

#define kFontProximaNovaBold                @"ProximaNova-Bold"
#define kFontProximaNovaLight               @"ProximaNova-Light"
#define kFontProximaNovaRegular             @"ProximaNova-Regular"


__unused static int kNumberOfColumnOnRealTime=3;
#define kNumberOfMenuOnRealTime             6

// Color
#define kColorInputText                         [UIColor colorWithRed:81.0/255.0 green:81.0/255.0 blue:81.0/255.0 alpha:1.0]

#define kEventColorRow   [UIColor colorWithRed:204.0/255.0 green:208.0/255.0 blue:214.0/255.0 alpha:1.0]

#define kOddColorRow [UIColor colorWithRed:231.0/255.0 green:232.0/255.0 blue:235.0/255.0 alpha:1.0]


#define kColorDescrease   [UIColor colorWithRed:248.0/255.0 green:118.0/255.0 blue:123.0/255.0 alpha:1.0]

#define kColorIncrease     [UIColor colorWithRed:111.0/255.0 green:197.0/255.0 blue:12.0/255.0 alpha:1.0]

#define kColorSettingText     [UIColor colorWithRed:148.0/255.0 green:148.0/255.0 blue:152.0/255.0 alpha:1.0]

#define kWidthColumn                80
#define kHeightSection              44

/********
* using AFNetworking
*
********/
#define _DATA_PRODUCTION_ 1
#if (_DATA_PRODUCTION_)

__unused static NSString * URL_SERVICE =@"http://volatix-test.siliconprime.us/";
__unused static NSString * URL_WESITE =@"";

#else
__unused static NSString * URL_SERVICE =@"http://volatix-test.siliconprime.us/";
__unused static NSString * URL_WESITE =@"";

#endif
#define UPDATE_DATA_REAL_TIME @"api/v1/realtime"
#define GET_LIST_DYNAMIC_COLUMN @"api/v1/screens"
#define GET_LIST_ISO(skipPage,pageSize) [NSString stringWithFormat:@"api/v1/isoes/?keyword=&pageindex=%d&pagesize=%d",skipPage,pageSize]
#define GET_LOADZONE(skipPage,pageSize,iso) [NSString stringWithFormat:@"api/v1/loadzones/?keyword=&pageindex=%d&pagesize=%d&iso=%@",skipPage,pageSize,iso]
#define GET_POWERPOINT(skipPage,pageSize,iso,loadzone) [NSString stringWithFormat:@"api/v1/powerpoints/?keyword=&pageindex=%d&pagesize=%d&iso=%@&loadzone=%@",skipPage,pageSize,iso,loadzone]
#define GET_DATA_DAY_AHEAD(dateTime)[NSString stringWithFormat:@"api/v1/dayahead/?date=%@",dateTime]
/** 
 *Day Ahead
**/
#define GET_ISO_DAY_AHEAD(date,iso) [NSString stringWithFormat:@"api/v1/dayahead/?date=%@&iso=%@",date,iso]
#define GET_LOAD_ZONE_DAY_AHEAD(date,iso,loadzone) [NSString stringWithFormat:@"api/v1/dayahead/?date=%@&iso=%@&loadZone=%@",date,iso,loadzone]

#define GET_POWER_POINT_DAY_AHEAD(date,iso,loadzone,powerpoint) [NSString stringWithFormat:@"api/v1/dayahead/?date=%@&iso=%@&loadZone=%@&powerpoint=%@",date,iso,loadzone,powerpoint]

// Message text
#define PASSWORD_IS_BLANK  @"Please enter your a password."
#define PASSWORD_IS_INVALID @"Password must be at least 6 characters."
#define WRONG_USERNAME_OR_PASSWORD @"Wrong Username or Password."
